/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2016年8月16日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package composite;

/**
 * @Type Do
 * @Desc
 * @author boboge
 * @date 2016年8月16日
 * @Version V1.0
 */
public class Do {
    public static void main(String[] args) {
        ChildCategory childCategory = new ChildCategory("类别");
        ChildCategory childCategory10 = new ChildCategory("视频");
        ChildCategory childCategory11 = new ChildCategory("文章");
        ChildCategory childCategory100 = new ChildCategory("av");
        childCategory100.add(new Title("比比资源网"));
        childCategory100.add(new Title("先锋资源网"));
        ChildCategory childCategory101 = new ChildCategory("搞笑");
        childCategory101.add(new Title("小梦"));
        childCategory101.add(new Title("轻松时刻"));
        childCategory.add(childCategory10);
        childCategory.add(childCategory11);
        childCategory10.add(childCategory100);
        childCategory10.add(childCategory101);
        childCategory.display(0);
    }
}
